// include library.
#include<iostream>
#include<fstream>
#include<string>

// using names.
using std::ifstream;
using std::cout;
using std::string;
using std::endl;

// declare method.
void ReadBoardFile(string);

int main(){
    string path="files/1.board";
    ReadBoardFile(path);
    return 0;
}

void ReadBoardFile(string path){
    ifstream myfile;
    myfile.open(path,myfile.app);

    if(myfile.good()){
        string str;
        while (getline(myfile,str))
        {
            cout<<str<<endl;
        }
    }

    cout<<"read successful!";
}